package www.ym.com.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.javassist.SerialVersionUID;
import org.apache.tomcat.jni.Local;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;


@Data
public class Orders implements Serializable {

    public static final long SerialVersionUID = 1L;

    //订单号
    private Long id;


    //下单用户id
    private Long userId;

    //银行卡id
    private Long bankId;

    //地址id
    private Long addressId;

    //订单状态 0待付款，1待商家结单 2待派送，3已派送，4已完成，5已取消
    private String status;

    //支付方式 0网银支付，1微信，2支付宝
    private Integer payMethod;

    //总份数
    private Integer totalCopies;

    //实收金额
    private Integer amount;

    //收货人
    private String consignee;

    //收货人电话号码
    private String phone;

    //地址
    private String address;

    //备注
    private String remark;


    //商家回复消息
    private String msg;

    //取消订单理由
    private Integer cancelMsg;

    //下单时间
    private LocalDateTime orderTime;

    //结账时间
    private LocalDateTime checkoutTime;

    //完成订单
    private LocalDateTime finshTime;


    //订单里面的菜品
//    private List<String> orderDetails;

}
